package ru.ifmo.thesis.domain;

import java.util.Date;

import ru.ifmo.thesis.util.SequenceGeneratortor;

public class JobFactory {

	private static final SequenceGeneratortor ids = new SequenceGeneratortor();
	
	public static Job newJob(String description, 
			Location location,
			Date revealanceTime, 
			ContractOptions contractOptions,
			int expectedEliminationTime) {
		
		return new Job(ids.nextValue(), description, location, revealanceTime,
				contractOptions, expectedEliminationTime);
	}
}